package pojo;

import java.util.Objects;

public class TbPhoneDetail {
    private Integer phoneDetailId;
    private String phoneDetailName;
    private String phoneDetailNameDescribe;
    private Integer detailTypeId;
    private TbDetailType tbDetailTypeByDetailTypeId;

    public Integer getPhoneDetailId() {
        return phoneDetailId;
    }

    public void setPhoneDetailId(Integer phoneDetailId) {
        this.phoneDetailId = phoneDetailId;
    }

    public String getPhoneDetailName() {
        return phoneDetailName;
    }

    public void setPhoneDetailName(String phoneDetailName) {
        this.phoneDetailName = phoneDetailName;
    }

    public String getPhoneDetailNameDescribe() {
        return phoneDetailNameDescribe;
    }

    public void setPhoneDetailNameDescribe(String phoneDetailNameDescribe) {
        this.phoneDetailNameDescribe = phoneDetailNameDescribe;
    }

    public Integer getDetailTypeId() {
        return detailTypeId;
    }

    public void setDetailTypeId(Integer detailTypeId) {
        this.detailTypeId = detailTypeId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbPhoneDetail that = (TbPhoneDetail) o;
        return Objects.equals(phoneDetailId, that.phoneDetailId) &&
                Objects.equals(phoneDetailName, that.phoneDetailName) &&
                Objects.equals(phoneDetailNameDescribe, that.phoneDetailNameDescribe) &&
                Objects.equals(detailTypeId, that.detailTypeId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phoneDetailId, phoneDetailName, phoneDetailNameDescribe, detailTypeId);
    }

    public TbDetailType getTbDetailTypeByDetailTypeId() {
        return tbDetailTypeByDetailTypeId;
    }

    public void setTbDetailTypeByDetailTypeId(TbDetailType tbDetailTypeByDetailTypeId) {
        this.tbDetailTypeByDetailTypeId = tbDetailTypeByDetailTypeId;
    }
}
